//
//  FirstXibViewController.m
//  11_Xib
//
//  Created by 徐昊 on 16/7/28.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "FirstXibViewController.h"
// 签订代理人, 指定代理人, 实现协议方法
// 指定代理人, 在Xib中可以通过控件向File's Owner去指定
// 相当于 self.userTextField.delegate = self;
// 接下来只需要签订代理, 实现代理方法
@interface FirstXibViewController ()
// IBOutlet 修饰的属性, 是Xib/SB中的控件
// 1. 实心圆圈说明已关联对象
@property (weak, nonatomic) IBOutlet UITextField *userNameTextField;
// 2. 空心表示未关联
@property (weak, nonatomic) IBOutlet UITextField *passWordTextField;
// 3. Xib/SB中控件与VC/自定义Cell关联后, 如果属性被删除, 对应控件的关联也应被删除(右键查看控件 Refercening IBOutLets)
@end

@implementation FirstXibViewController
- (IBAction)clickButton:(UIButton *)sender {
    NSLog(@"垃圾");
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
